home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / io / Headers / CEgErr.h next >
Text File  |  1999-07-13  |  1KB  |  82 lines

  1.  
  2.  
  3. #ifndef _CEGERR_
  4. #define _CEGERR_
  5.  
  6. enum {
  7.     cNoErr                = 0,
  8.     cBadClassID            = -554,
  9.     cCorrupted            = -555,
  10.     cBadExamVersion        = -556,
  11.     cBadPLVersion        = -557,
  12.     
  13.  
  14.     cEOFErr                = -558,
  15.     cReadErr            = -559,
  16.     cNotOpen            = -560,
  17.     cOpenErr            = -561,
  18.     cFileNotFound        = -625,
  19.     cCloseErr            = -562,
  20.     cCreateErr            = -563,
  21.     cWriteErr            = -564,
  22.     cSeekErr            = -565,
  23.     
  24.     
  25.     cCantFetchPLFile    = -566,
  26.     cPLItemNotFound        = -567,
  27.     
  28.     cEOSErr                = -568,
  29.     cTiedEOS            = -569,
  30.     cOStreamEOfIS        = -570,
  31.     
  32.     cResourceNotFound    = -590,
  33.     cResHeaderCorrupt    = -591,
  34.     cResourceInvalid    = -592,
  35.     
  36.     cBitmapCorrupted    = -595,
  37.     cBitmapNotMono        = -596,
  38.     cBitmapTooDeep        = -597,
  39.     cBadBitmapType         = -598,
  40.     cPICTNotSupported    = -599,
  41.     cRLENotSupported    = -600,
  42.     cNoImageOnClip        = -601,
  43.     cUnsupportedMetafileMM = -602,
  44.     
  45.     cBadPDFVersion        = -650,
  46.     cNoStartXRefFound    = -651,
  47.     cBadXRefLoad        = -652,
  48.     cBadObjRefDef        = -653,
  49.     cPStringExpected    = -654,
  50.         
  51.     cBadParseDictValue    = -660,
  52.     cNoEndDictFound        = -661,
  53.     cNoStartDictFound    = -662,
  54.  
  55.     cEndOfArrayExpected    = -670,
  56.     
  57.     cStreamLoadErr        = -680
  58. };
  59.  
  60.  
  61. #include "UtilStr.h"
  62.  
  63. class CEgErr {
  64.  
  65.     protected:
  66.         short int            mErr;
  67.         short                mOSErr;
  68.  
  69.  
  70.         void                OSErrMsg( UtilStr& ioStr );    
  71.         
  72.     public:
  73.                             CEgErr( long inErr = cNoErr );
  74.                         
  75.         virtual bool        noErr();
  76.         virtual void        throwErr( long inErr );
  77.         virtual long        getErr();
  78.         virtual void        GetErrStr( UtilStr& outStr );
  79.  
  80. };
  81.  
  82. #endif